﻿-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[A_UPD_Utilizador]
	-- Add the parameters for the stored procedure here
	@UserName as varchar(100),
	@DisplayName as varchar(100),
	@Password as varchar(100),
	@Email as varchar(100),
	@IDUtilizador as int
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	UPDATE [Apostas].[dbo].[A_Utilizadores]
	SET [UserName] = @UserName
      ,[DisplayName] = @DisplayName
      ,[Password] = @Password
      ,[Email] = @Email
	WHERE IDUtilizador = @IDUtilizador
           
END